<?php
if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
$gametype = intval(getvar("gametype"));
$gType = chkGametype($gametype);
switch ($gametype)
{
    case 0 :
        header("op.php?op=admin&fp=dttest");
        exit();
        break;
}
include_once( "class_3d/CheckMode_3d.php" );
$chk = new CheckMode_3d($curruser['acl'], 1, $gametype);
$chk->checkShow3dPage();
unset($chk);
$ui = new UI_3D();
$ui->header();
if ($curruser['prev_id'] == 0)
{
    include( "admin_menu_3d.php" );
}
else
{
    include( "admin_menu_3d.php" );
}
if (isset($_POST['id']))
{
    $id = intval($_POST['id']);
    if ($id == 0)
    {
        echo "错误的数值！";
        exit();
    }
    echo "数值[ {$id} ]转换日期时间为[ " . date("Y-m-d H:i:s", $id) . "] ";
    echo " <input type=button value='清除' onclick='history.back()'>";
}
else
{
    echo "<font color=red><b>日期时间转换</b></font><br>";
    echo "<form action=\"op.php?op=admin&fp=dttest\" method=post onsubmit=\"this.submit.disabled=true;this.reset.disabled=true\">";
    echo "请输入要转换的数值：<input name=id> ";
    echo " <input type=submit value='确定'>";
    echo "</form>";
}
?>